﻿<?xml version="1.0" encoding="utf-8" ?>
<routes>
  <!--area routes-->
  <add name="Catalog" url="Catalog/{controller}/{action}">
    <area>Catalog</area>
    <namespace>Xenta.Web.Areas.Catalog.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Category</controller>
    </defaults>
  </add>
  <add name="Commerce" url="Commerce/{controller}/{action}">
    <area>Commerce</area>
    <namespace>Xenta.Web.Areas.Commerce.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Order</controller>
    </defaults>
  </add>
  <add name="FileSystem" url="FileSystem/{controller}/{action}">
    <area>FileSystem</area>
    <namespace>Xenta.Web.Areas.FileSystem.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>File</controller>
    </defaults>
  </add>
  <add name="Forum" url="Forum/{controller}/{action}">
    <area>Forum</area>
    <namespace>Xenta.Web.Areas.Forum.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Forum</controller>
    </defaults>
  </add>
  <add name="Globalization" url="Globalization/{controller}/{action}">
    <area>Globalization</area>
    <namespace>Xenta.Web.Areas.Globalization.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Profile</controller>
    </defaults>
  </add>
  <add name="Membership" url="Membership/{controller}/{action}">
    <area>Membership</area>
    <namespace>Xenta.Web.Areas.Membership.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Account</controller>
    </defaults>
  </add>
  <add name="Messaging" url="Messaging/{controller}/{action}">
    <area>Messaging</area>
    <namespace>Xenta.Web.Areas.Messaging.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Message</controller>
    </defaults>
  </add>
  <add name="Publishing" url="Publishing/{controller}/{action}">
    <area>Publishing</area>
    <namespace>Xenta.Web.Areas.Publishing.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Publication</controller>
    </defaults>
  </add>
  <add name="System" url="System/{controller}/{action}">
    <area>System</area>
    <namespace>Xenta.Web.Areas.System.Controllers</namespace>
    <defaults>
      <action>Index</action>
      <controller>Configuration</controller>
    </defaults>
  </add>
  <add name="Static" url="Page/{action}">
    <namespace>Xenta.Web.Controllers</namespace>
    <defaults>
      <controller>Static</controller>
    </defaults>
  </add>
  <add name="Default" url="{controller}/{action}">
    <namespace>Xenta.Web.Controllers</namespace>
    <defaults>
      <action>Home</action>
      <controller>Static</controller>
    </defaults>
  </add>
  <!--ignore routes-->
  <add url="{resource}.axd/{*pathInfo}">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
  <add url="{resource}.ashx/{*pathInfo}">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
  <add url="favicon.ico">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
</routes>